<template>
  <div>
    <v-listeas :obj="obj" @edit="edit"></v-listeas>
     <v-add  :obj="obj" ref="oCh"></v-add>
  
  </div>
</template>
<script>
  import  vAdd  from "./components/add.vue" 
  import vListeas from "./components/listeas.vue"
  export default {
    data() {
      return {
         obj:{
          isTrue:false
        },
      }
    },
    methods: {
      edit(uid){
        this.obj.isTrue = true
        // 还要执行add中的getOne方法
        this.$refs.oCh.getOne(uid)
      },
    },
    components: {
      vAdd,
      vListeas
    },
    mounted() {},
    destroyed() {},
  }
</script>
<style>
</style>